<?php
session_start();

require_once '../../../../serverResources/includes/classes/Qreply.php';
require_once '../../../../serverResources/includes/db/ConnDBUser.php';


$usrID=$_SESSION['userID'];
$reply=$_POST['reply'];
$commentID=$_POST['commentID'];

if($reply != ""){
	
	$rep=new QReply($reply, $commentID, $usrID);
	$rep->storeReply();
	unset($rep);
	
	echo $reply;
}
